-
Notifications
You must be signed in to change notification settings - Fork 8.2k
dts: arm: st: h7: add lptim1 #38879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dts: arm: st: h7: add lptim1 #38879
Conversation
erwango
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@manoj153 Have you been able to verify LPTIM1 behavior on STM32H7?
dts/arm/st/h7/stm32h7.dtsi
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove as there is no code to support LPTIM instances other than LPTIM1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Exact
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erwango tested with my WIP H7 board, #39295, seems working the blinky example, console output from sample
west build -b nucleo_h7a3zi_q samples/boards/stm32/power_mgmt/blinky/ -p
*** Booting Zephyr OS build v2.7.99-421-ge7612de315b3 ***
Device ready
Let me know if this indicates h7 LPTIM1 test pass?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, I wonder why when PM is enabled, there is no sanity check as such if lptim1 is okay?
Is that intended or missing from sight?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also, I wonder why when PM is enabled, there is no sanity check as such if lptim1 is okay?
We could imagine other implementations than having LPTIM1.
So, even if this is true today, this might not be always the case and users may have some other implementation out of tree so I don't think this is really required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me know if this indicates h7 LPTIM1 test pass?
Best way is to run timer API test
@erwango just to confirm, are you referring to this test
https://github.com/zephyrproject-rtos/zephyr/tree/main/tests/kernel/timer/timer_api ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erwango sorry I may wrongly press for re-request for review. kindly ignore for this time
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@erwango few updates
-
timer_api_test's
prj.confneedsCONFIG_PM=y, which I manually added for now.
dependent on PM,
https://docs.zephyrproject.org/latest/reference/kconfig/CONFIG_STM32_LPTIM_TIMER.html -
I am seeing some error during sys_clock_init, shared console output for your perusal, any idea?
*** BootinASSERTION FAIL [0] @ WEST_TOPDIR/zephyr/drivers/timer/sys_clock_init.c:23
E: r0/a1: 0x00000004 r1/a2: 0x00000017 r2/a3: 0x00000001
E: r3/a4: 0x0000000f r12/ip: 0x00000000 r14/lr: 0xfffffffd
E: xpsr: 0x4100000f
E: Faulting instruction address (r15/pc): 0x0800d396
E: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
E: Fault during interrupt handling
E: Current thread: 0x24000568 (main)
E: Halting system
I'll do a test and share soon. I don't have a supported board to do it, I am adding a new board support once that is ready. |
lptim1 is available on all H7 Signed-off-by: Manojkumar Subramaniam <[email protected]>
d6725d6 to
c8030f3
Compare
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
seems to be lptim1,2,3 are commonly available to all H7
Signed-off-by: Manojkumar Subramaniam [email protected]